import java.util.List;

class Solution {
    public boolean isAcronym(List<String> words, String s) {
        StringBuilder stringBuilder = new StringBuilder();
        int i = 0;
        while (i < words.size()) {
            String str = words.get(i);
            char c = str.charAt(0);
            stringBuilder.append(c);
            i++;
        }
        return s.contentEquals(stringBuilder);
    }
}